<div id="MarketingActivityReportOrganization">
  <yu-panel title="营销任活动报表-机构">
    <yu-xform label-width="110px" ref="MarketingActivityReportOrganizationInfoSearch" related-table-name="MarketingActivityReportOrganizationTable" form-type="search"
              :custom-search-fn="searchFn">
      <yu-xform-group :column="3">
        <yu-xform-item label="机构名称" placeholder="机构名称" name="gridName" ctype="input"></yu-xform-item>
        <yu-xform-item label="活动名称" placeholder="活动名称" name="activeName" ctype="input"></yu-xform-item>
        <yu-xform-item label="是否有效活动" placeholder="请选择" ctype="select" name="effectFlag" data-code="YES_NO"></yu-xform-item>
        <yu-xform-item label="数据日期" placeholder="数据日期" ctype="datepicker" name="etlDt" ></yu-xform-item>
      </yu-xform-group>
    </yu-xform>
    <div style="justify-content:space-between;display: flex">
      <div>
        <yu-button type="warning" v-loading="loading"  @click="exportExcel()" >导出数据</yu-button>
      </div>
    </div>
    <div style="height: 30px"></div>
    <yu-xtable ref="MarketingActivityReportOrganizationTable" :base-params="MarketingActivityReportOrganizationData" :data-url="funcDataUrl" request-type="get" row-number style="width: 100%">
      <yu-xtable-column prop="etlDt" label="数据日期" width="120px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="gridName" label="机构名称" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="activeName" label="活动名称" width="130px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="startDate" label="开始时间" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="endDate" label="结束时间" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="effectFlag" label="是否有效活动（传照片为有效）" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="inviteCustNum" label="邀约客户数" width="90px" align="center" show-overflow-tooltip></yu-xtable-column>
      <yu-xtable-column prop="documentCustNum" label="新建档客户数" width="130px" align="center" show-overflow-tooltip></yu-xtable-column>
    </yu-xtable>
  </yu-panel>
</div>
